package com.sun.alen.stagetwo.PaySystem;

public class PaySystem {
    public static void main(String[] args) {
        // 创建CashPay实例并测试
        CashPay cashPay = new CashPay();
        cashPay.setAmount(100.0);
        cashPay.pay();
        
        // 创建WechatPay实例并测试
        WechatPay wechatPay = new WechatPay();
        wechatPay.setAmount(100.0);
        wechatPay.pay();
        wechatPay.coupon();
    }
}